<template>
  <div class="shop-content flex-j-sb flex-a-c " :class="usClass ? 'shopListUs' : ''"  @click.stop="storeNavigation(storeItem.store_id)">
    <div class="address">
      <div class="store-name ell">{{ storeItem.name }}</div>
      <div class="address-details">{{ address }}</div>
      <div class="location flex-a-c">
        <i class="iconfont icon-dizhi1" style="margin-right: .1875rem;font-size: .75rem;color: #999;"></i>
        <span class="distance">距离{{ storeItem.distance }} </span>
        <!-- <div class="navigation flex-a-c" @click.stop="navigation(storeItem.latitude, storeItem.longitude, storeItem.store_name)">
          <div>导航</div>
          <span class="iconfont icon-advertise-next"></span>
        </div> -->
        <slot name="merchant"></slot>
      </div>
    </div>
    <div style="display: flex;align-items: center;margin-left: 1.1563rem;">
      <div style="margin-right: 1.1563rem;" class="mobile" @click.stop="navigation(storeItem.latitude, storeItem.longitude, storeItem.name)">
        <span class="iconfont icon-zx_map_local"></span>
        <span>地图</span>
      </div>
      <div class="mobile" @click.stop="callStore(storeItem.tel)">
        <span class="iconfont icon-zx_map_tel"></span>
        <span>电话</span>
      </div>
    </div>
  </div>
</template>
<script>
import addressUs_controller from "./addressUs_controller.js";
export default addressUs_controller;
</script>
<style scoped>
.purchase-content ::v-deep .van-collapse-item__content {
  background-color: #f8f8f8;
}

.purchase-content ::v-deep .van-collapse-item {
  background-color: #f8f8f8;
}
</style>
<style lang="scss" scoped>
.icon-zx_map_local,.icon-zx_map_tel{
  width: 1.4375rem;
  height: 1.4375rem;
  font-size: .75rem;
  line-height: 1.4375rem;
  margin-bottom: .375rem;
  background: #EAEDF3;
  border-radius: .5625rem .5625rem .5625rem .5625rem;
}

/* 门店不同的样式 */

.ell {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* 定义显示的行数 */
  overflow: hidden;
}

.shopListUs {
  padding: 0.8438rem 0.75rem 0.8125rem 0.7813rem;
}

.shop-content {
  width: 100%;
  background: linear-gradient(180deg, #F2F7FC 0%, #FFFFFF 100%);
  border-radius: .5remx;
  padding: .75rem .625rem;
  box-sizing: border-box;


  .location img {
    width: 0.5625rem;
    height: 0.6875rem;
    margin: 0 0.4375rem 0 0;
  }
}

.location img {
  width: 0.5625rem;
  height: 0.6875rem;
  margin: 0 0.4375rem 0 0;
}

.shop-content .mobile {
  display: flex;
  flex-direction: column;
  text-wrap: nowrap;
}

.address {

  // width: 100%;
  .store-name {
    font-weight: bold;
    font-size: .875rem;
    line-height: 1;
    color: #00001C;
    text-align: left;
    margin-bottom: .625rem;
  }

  .address-details {
    font-size: 0.8125rem;
    color: #222;
    text-align: left;
    margin: 0 0 0.4688rem 0;
    text-align: left;
  }
}

.location {
  .distance {
    font-size: 0.75rem;
    color: #555;
    margin: 0 0.875rem 0 0;
  }

  .navigation {
    font-size: 0.75rem;
    color: #ff3a00;
  }
}
</style>
